﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using TimeSheetReporting.Web.Service;
using TimeSheetReporting.Web.Model;
using System.Windows.Ria;

namespace TimeSheetReporting.Helper
{
    public class ProjectListProvider
    {
        TimeSheetContext _dc;
        public TimeSheetContext DomainContext
        {
            set
            {
                _dc = value;
                _dc.Load<Project>(_dc.GetProjectQuery());
            }
        }

        public EntitySet<Project> ProjectList
        {
            get
            {
                return _dc.Projects;
            }
        }
    }
}
